home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / SDKs / Apple Game Sprockets / DrawSprocket / GoggleSprocket / GoggleSprocketTest Sources / GSpTest_EventLoop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-12  |  1.1 KB  |  48 lines  |  [TEXT/CWIE]

  1. /*
  2. ********************************************************************************
  3. **
  4. ** File: EventLoop.h
  5. **
  6. ** Description:
  7. **
  8. **    Event loop routines.
  9. **
  10. ********************************************************************************
  11. */
  12. #ifndef __EventLoop_h__
  13. #define __EventLoop_h__
  14.  
  15. /*
  16. ********************************************************************************
  17. ** globals
  18. ********************************************************************************
  19. */
  20. extern Boolean gDoneFlag;
  21. extern Boolean gInBackground;
  22.  
  23. /*
  24. ********************************************************************************
  25. ** menu resources and ids
  26. ********************************************************************************
  27. */
  28. #define kMBAR_ID            128
  29.  
  30. enum {
  31.      kMenu_Apple                = 128,
  32.     kMenuItem_About            = 1,
  33.  
  34.     kMenu_File                = 129,
  35.     kMenuItem_New            = 1,
  36.     kMenuItem_Open            = 2,
  37.     kMenuItem_Close            = 3,
  38.     kMenuItem_Quit            = 5,
  39. };
  40.  
  41. /*
  42. ********************************************************************************
  43. ** prototypes
  44. ********************************************************************************
  45. */
  46. void EventLoop( void );
  47.  
  48. #endif // __EventLoop_h__